import request from '@/utils/request'

export const getNotifyList = (parameter) => {
  return request({
    url: '/boss/sys/sys_notify/listByPage',
    method: 'post',
    data: parameter
  })
}

export const addNotify = (parameter) => {
  return request({
    url: '/boss/sys/sys_notify/add',
    method: 'post',
    data: parameter
  })
}

export const editNotify = (parameter) => {
  return request({
    url: '/boss/sys/sys_notify/edit',
    method: 'post',
    data: parameter
  })
}

export const closeNotify = (parameter) => {
  return request({
    url: '/boss/sys/sys_notify/close',
    method: 'post',
    data: parameter
  })
}

export const getLatestNotify = (parameter) => {
  return request({
    url: '/boss/sys/sys_notify/get_latest_version_notify',
    method: 'post',
    data: parameter
  })
}

export const getNotifyDetail = (parameter) => {
  return request({
    url: '/boss/sys/sys_notify/detail',
    method: 'get',
    params: parameter
  })
}
